package pl.edu.project.view;

import java.awt.Color;

import javax.swing.JColorChooser;
import javax.swing.JDialog;
import javax.swing.JFrame;

@SuppressWarnings("serial")
public class SettingsWindow extends JDialog {
    public Color color;

    public SettingsWindow(JFrame owner) {
	setData(owner);
    }

    private void setData(JFrame owner) {
	color = JColorChooser.showDialog(owner,
		"Choose a color for eventLists box", color);

	if (color == null)
	    color = Color.lightGray;
//	((CalendarFrame) owner).setEventListColor(color);

	pack();
    }

}